using System;
using Kollektiv.DB;

namespace Kollektiv.DataModel
{
	public class SettingRepository:DataRepository<Setting>
	{
		public SettingRepository (DataManager manager):base(manager)
		{
		}
		
		public Setting Create (string type, string value)
		{
			Setting setting = new Setting (){
				Type=type,
				Value=value
			};
			
			this.SaveOrUpdate (setting);
			
			return setting;
		}
	}
}

